/*
 * @Author: zxc
 * @Date: 2021-01-23 15:05:10
 * @LastEditTime: 2021-01-23 15:19:38
 * @LastEditors: zxc
 * @Description:闭包
 */
// const makePower = power => {
//   return num => {
//     return num ** power
//   }
// }

// let pows = makePower(3)
// console.log(pows(2))

const getSalary = base => {
  return performance => performance + base
}

let levelA = getSalary(1000)
let levelB = getSalary(2000)

console.log(levelA(1200))
console.log(levelB(1200))
